<?php
namespace app\tactics\model;

use think\Model;

/**
 * 策略属性模型
 * @package app\tactics\model
 */
class Grouplist extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'xb_member_grouplist';

    // 自动写入时间戳
    protected $autoWriteTimestamp = 'timestamp';
    protected $createTime = 'CreateTime';

    public function member()
    {
        return $this->hasOne('Member','id','id')->field('id,name,company,mobile,email,province,city,town,addr');
    }
	
	// 定义关联方法

    public function Group()
    {
        return $this->belongsTo('Membergroup');
    }
	
}
